starting work on rank & select