Added some flags to 'find_neighbor' methods in LinearSolver