utility class for sorting ,searching in Java collections