Implementation of algorithms for practice