algs4; exercise 1.1.21 - printing in a table format