Simple Hash function implemented - Bug fixed