Added array sorting.
Added `is_array_sorted`.
Fixed (hopefully) gcc breakage.