A few algorithms and data structures implemented from scratch for fun and profit