Added cartesian <-> barycentric conversion