fix bug
format the code
add implementation of hash table.