Array print routine in main.cpp
Changes for compatibility with clang

Double braces are just to make clang happy