Function joinPaths

Given a list of PathDatas, join them into one SVG path. For correct results, the end points and start points of each path must already coincide.