HW4:task1: added class HashFunction; function add() remade for const char* argument; memory leaks fixed