public BinarySearch(Func<int, double> function, int a, int b) { this.Function = function; this.LowerBound = a; this.UpperBound = b; }