My bad implementations of the algorithms I somehow made