Finished off the base AdaRank implementation. Possible optimizations abound.