Custom implementations of useful data structures