added function to Recieve the results in a 2-D array for the HiveQueries