add solution for Numbers With Rank data structure in Cracking the Coding interview chapter 11 problem 8