Added a method for padding byte arrays with leading zeros