Optimized update algorithm for minsum and automatic update algorithm selection
Revert "Optimized update algorithm for minsum and automatic update algorithm selection"

This reverts commit 733cda8e9b3d65a3375757857b7e2cbd0773221c.