Revert "Algorithms implementation"

This reverts commit 17d3ce3f0dfe803c42240f580f81d35170c04389.