Spelling corrector implementation in Scala using BK trees