Adaptive structure detector for linear implicit systems