AI
 - Initial implementation of RankSets function.