Fixed HIPAcc code for test bench "Detect local extrema"