Numerical Methods for Porous Media and Shallow Water Flows & An Algebra of Singular Semiclassical Pseudodifferential Operators.