Monotone Partitioning (With helper Method) Done