static void Main(string[] args) { var pyramid = CreatePyramid(); if (pyramid == null || pyramid.Count == 0) { throw new Exception("Pyramid not found or has no data"); } var binaryTree = new Tree(pyramid); binaryTree.FindMaxPath(); Console.ReadLine(); }