Modified luSolve to work only with DoubleMatrix