Reworked add() to work with any integer coming out of copareTo.
Developed and tested contains() and search().