Add map function to WMath

new file WMath.h.