improved esa-smax-scan algorithm by checking for searchlength