Easily specify CAKeyFrameAnimation curve using C functions or ObjC Class