Add the fill function
Implement run-length encoding