ADDED:GPVector2d and function implements