Add ST_Force2D and ST_Force3D functions

Add the two functions  ST_Force2D and ST_Force3D.
Ref to #40