check if matrix has multiple solutions