Implemented the hashCode method to be consistent with the equals method
Merge pull request #61 from roikku/master

Implemented the hashCode method to be consistent with the equals method