I must admit that your query was not clearly understood by me.
Probably, you could post the VI you have developed to do this check. We could have a look at it and suggest better.
The Pointers i could give would be: Are you using a shift register to store your array of cluster's values from previous iteration??
And passing/wiring it through both the case conditions??