monocheck function

This function checks if monotonicity is violated