Fix invalid argument order

`gethash` takes key as first argument and takes hash as second argument.
Merge pull request #3 from syohex/fix-for-hash

Fix invalid argument order