Improve histogram function

* It can swap values
Add midi intervals histogram chart