kata5: use local functions for calculating position with vector-of-longs
kata5: move hash functions to separate module
kata5: add some documentation the speed differences