Pivot works and its fast.

TODO: right now, the function calls are a kludge and it works for n's only
(intended to run via function call for each item)
will it be fast enough?

And the scale of the bar is not labeled yet.

Signed-off-by: Lennard Wasserthal <Wasserthal@nefkom.net>