Create hash.cpp

Functions for dictionary program