Making the core of the code work with any Ord type, not just Chars.