Replaced some ccollect with std::vector
Added logic for #25 (not going out of the search window, yet)