Fix insertion sort and comparators

insertion_sort was actually sorting by values not by pointers as
expected. The argument list was modified to reflect this change.

The comparator functions have also been changed to support sort
direction, to allow sort by ascending and descending order.
Merge branch 'master' of github.com:chutsu/al