Refined the SherlockSquares algorithm by narrowing the scope of numbers.