a collection of random, useful algorithms