Implemetion of some popular algorithms