My implemeentation of algorithms