added flags to scan for cutoff index
getCutoff function working which overwrites the ignored region with either INF or -INF