Spell Checking Using Tree Structures and Hash Function