added computation of the distance between point and a subspace
added linear solver