a dump of a few algorithms i've chosen to implement for fun.