Smooth and Topological Equivalence of Functions on Surfaces