Spell checker implemented in C