implement equals and hash
extract patterns to utils
Merge branch 'master' of https://github.com/moovida/jgrasstools