Fixed issue with vector sorting. Added convenience functions for comparing integer types (compare.h) and moved hashing functions in a seperate file (hash.h)