Some algorithms written recently