List to double[][] and populating the array - C#