Array sorting check tool

Added tool class that checks if arrays are sorted or not (to verify
function of sorting algorithms), also made use of it in random array
unit tests to make those tests easier to read