Added check field for Ripple/Bubble Sort