implemented function to combine coordinates of straight lines and contours
into a single vector