Find end

Added algorithm and test for ```find_end```