optimzed find_window_vector