Revert "Edited some algs"

This reverts commit 17624c964d71e56aaefe9cae850a4746823ad35d.