IComparable and IComparer interfaces implemented. WILL FUNCTIONALIZE THE SWITCH STATEMENT.