Refactor the gradient calculation
Got grad! working for plstwo

Changed the structure to include vectors of views into arrays.
Merge pull request #24 from dmbates/Gradient

Gradient