sem2hw5task1: Changed second hash function. Previous one returned the
same value as first function for some sizes of hash table.