static void Main(string[] args) { var values = new List <int>() { 8, 7, 13, 6, 2, 5, 1, 9, 11, 3, 4, 10 }; int outputInt; outputInt = Q3.BSTdistance(values, 10, 2); Console.WriteLine(outputInt); Console.ReadKey(); }