All code complete. Need to add some comments and design by contract.
Left test code in for now. Made temporary change to compareTo method in
Review.