almost working nullspace solver