Use stubbed sorting class in tests

Instead of creating a dictionary with a Tempfile (for the purpose of
returning an array of words), use a sorting class with a stubbed method
which returns the desired array of words.

Add skeleton LayoutBasedDictionarySorter class and tests.