Created reference implementation of Continuous2DFunction