Started writing geometric function library