work in progress, almost there...
removed output surrounding solve
simplifying row/column sorting methods... (wip)