Initial solution for restoring sentence of shuffled words problem.