Revert "Added algorithm 3"

This reverts commit 1e3d6f278d095ced29c93a35103e937445eaf3d9.