Parallel ranking generic java library