LayoutGen updated, generateCriticalPath method

generateCriticalPath creates the critical path. Also finished
implementing basic layout generation in pair coordinates