split hashLookUp method into two: hashInsert and hashFind