Bash Insertion sort

This version uses C style functions extensively. So lot's of double parentheses.