 
     func testDegree3() {
         // x^3 - 6x^2 + 11x - 6
-        let scratchPad = UnsafeMutableBufferPointer<Double>.allocate(capacity: 4)
-        defer { scratchPad.deallocate() }
         let polynomial = BerenStein3(b0: -6, b1: -7.0 / 3.0, b2: -2.0 / 3.0, b3: 0)
         let roots = findRoots(of: polynomial, between: 0, and: 4)
         XCTAssertEqual(roots[0], 1, accuracy: accuracy)

    }

    func testDegree1() {
        let scratchPad = UnsafeMutableBufferPointer<Double>.allocate(capacity: 2)
        defer { scratchPad.deallocate() }
        let polynomial = BerenStein1(b0: -3, b1: 2)
        let roots = findRoots(of: polynomial, between: -1, and: 1)
        XCTAssertEqual(roots.count, 1)


    func testDegree4RepeatedRoots() {
        // x^4 - 2x^2 + 1
        let polynomial = BerenStein4(b0: 1, b1: 1, b2: 2.0 / 3.0, b3: 0, b4: 0)
        let roots = findRoots(of: polynomial, between: -2, and: 2)
        XCTAssertEqual(roots.count, 2)
