Miscellaneous data structure and algorithm implementations for personal use