Added a hash implementation to data structures