Updated subspace dim calc to use QR
Added function for initializing a symmetric matrix