Utility method Converts path to a new path where all segments are cubic beziér curves
Returns: array array of segments