added basic unit testing and made AnagramSolver3 a little more efficient