This series of videos will guide you through implementing sorting features in HAL. The last PDF, "a02-debug.mp4" won't provide you with
a step-by-step video solution. It is meant as a separate exercise to tackle only when you are done with the other steps. The intent is
here to offer you a bug to track down.
We are going to first implement a function allowing us to assess whether an array is sorted, then use it to make
sure we search only on already sorted arrays. The search itself will use the binary search approach also known as
dichotomic search.
Last addition to HAL; we are now going to write two functions able to compare two HAL arrays. The first one will compare them
by position, the second by contents i.e. making sure the same data is in two arrays even if it is there in a different order.