creating ascii table from an array