My own implementation of a few optimized data structures