added align table function to tabularize array