Search_n

Added algorithm and test for ```search_n```