     return PixelColor(r: 0, g: 0, b: 0)
 }
 
-func mandelbrotCalc(_ imageWidth: Int, _ imageHeight: Int, _ maxIterations: Int, _ centerX: Double, _ centerY: Double, _ height: Double, _ iterationsHistogram: inout [Int], _ resultsPerPoint: inout [CalculationResult]) {
+func mandelbrotCalc(_ imageWidth: Int, _ imageHeight: Int, _ maxIterations: Int, _ centerX: Double, _ centerY: Double, _ height: Double, _ iterationsHistogram: inout [Int32], _ resultsPerPoint: inout [CalculationResult]) {
     let width = height * (Double(imageWidth) / Double(imageHeight))
 
     let xLeft   = centerX - width / 2.0

    }
}

func equalizeHistogram(_ iterationsHistogram: [Int], _ maxIterations: Int) -> [Float] {
    // Calculate the CDF (Cumulative Distribution Function) by accumulating all iteration counts.
    // Element [0] is unused and iterationsHistogram[maxIterations] should be zero (as we do not count
    // the iterations of the points inside the Mandelbrot Set).

    return (1.0 - t) * a + t * b
}

func cumsum(_ iterationsHistogram: [Int32]) -> [Int32] {
    var cdf = [Int32](repeating: 0, count: iterationsHistogram.count)
    var total: Int32 = 0

    for (i, n) in iterationsHistogram.enumerated() {
        total += n
