Implemented bwcalc.padWithLeadingZeros()