CriticalPathGen function written

Early version of function. CriticalPathGen returns a vector of
coordinates that represents the layout