Implemented word_wrap

Do let me know if there's a more idiomatic way to do this.
*nit*: I would like to move this entry above `write_ppm` to keep the alphabetical order