insert sort (groovy)