Sample/test implementation of algorithms