add spin matrix print ruby program