updated lbfgs to support cuda tensors.

fixed the clone during dot products.
Merge pull request #21 from jonathantompson/cuda_lbfgs

updated lbfgs to support cuda tensors.