Geometry of Subanalytic and Semialgebraic Sets by