I\'m working on a project that requires me to parse an array of an array of values, and work out the length of the line segments. The array that I have is in the form