Some algorithms I'm implementing for fun