Some hashing functinos write in C