implement a GetRank method of a order statistic tree and add corresponding unit tests