removed compilation/findbugs warnings about type safety the changes include API changes (replacing Object by Comparable<?>). The class itself is still not generic as this would prevent mixing types which is a desired feature here that is checked in the unit tests JIRA: MATH-261