12 Useful Algorithms for 12 Days of Christmas