began implementation of algorithms