Bug Fixes

Changed the matrix size from 10 to dynamic. Still needs square matrix.