Semi-perfect slope detection | ScratchStats