Implementation of some interesting algorithms