Reorder arguments to the usual order
Merge pull request #2 from wasnotrice/gradient

Reorder arguments to the usual order