Rectified Code

Rectified errors with rref implementation and further generating bases
and matrices