ignore case in matrix solutions