Print a paragraph (length M) neatly on a page using a straightforward O(nM) algorithm