Moved newton and linsolve from quicksand repo.