Current setup creates circular references, causing it to completely fail tests about 50% of the time. Pre-simplification commit for historical interest
Changed logic - uses Matrix.create(row,col,val) rather than new Matrix(row, col,val). Fixed partitionFromArray