change return value of compute_bezier_extraction_1d() to 3D array