Personal implementation of useful algorithms