Fixed errors in conditional statement

drawCumulative() and calculateFrequency() functions fixed
Cumulative plot is now correctly drawn on the waveform (for visual reference, not for listening)