bucket width was being rounded off, leading to inconsistencies in bucket index calculation for boundary values. boundary condition rectified.