Implement pp6calculator Day 2 Exercise 3 solution

Add basic_sort function taking pointer to array and its size, sorting
array in-place using bubble sort algorithm.

Add operation to main menu for sorting an array input by user. Allow
user to select array size, ensuring that input size is greater than 0
and less than a hard coded number, in this case 10. Use dynamic array
to store elements, array only living whilst operation is performed.

Query user for each element in turn, adding them to the array as we go.
Implement a printArray function to output elements in nice comma
separated format. Use this function to report array contents before
sorting, then sort array and use printArray to report the sorted
contents.

Filter out the new operation from result reporting at the end of the
menu loop as it reports its results in place.