The Construction of Basis Functions for Curved Elements in the Finite Element Method