basis of subspace calculator