Algorithms for Quantitative Pedology