Implemented longest_match()
added CLEAR_HASH() & comments update