Added rank/select methods