updated lbfgs to support cuda tensors.

fixed the clone during dot products.