Revert "trying parallelization"

This reverts commit ae8cbd64670425d594c3e75c65bf981a825d8d6e.

reverting commit due to parallelization not working
changed monotone function to also take into account monotonicity across rows