algs4; creative problem 1.1.30 - matrix of relatively prime