I generally use the sortedcontainers module for this purpose, but it does not work in codechef. Is there an alternative??