reformat the adarank algorithm and separate the functions
AdaRankFunc: All the fucntions of adarank algorithm
CostFunction: All possible evaluate functions
testbench: testing and debugging algorithms