split to one-query and many-queries realizations
One query (total pairwise optimization):
now using java 8 function interaface to generator  weights matrix
ndcg as static util class
rowMeans and colMeans as static util class