Changed comparators to return -1, 0 or 1. Added equals methods for int, float and string.