Added an extra element at the front, to avoid having to check for the 0th bin.