Added instructions 4 implementation of algorithm