Simplified sets and maps are easier to use and easier to learn than std::set and std::map from C++. They also have an additional function for searching for the k-th smallest element.
The detailed description and code examples are given at https://imomath.com/bmath/index.cgi?page=cppNotesSimpleSetMap