Algorithm Switch Complete For Changing Between Subwindow and Regular Correlation