Add n padding to a bytes array.
Memoization example.
Mutable functional example.