added longhash function
added pigunit for test suite