added pkcs7 padding utility function, and completed 9