An Optimized Framework for Plane-Probing Algorithms