trying to figure out why empty arrays occur in def solve_by_elimination