fixed comments, declared segment counting function
new module for sorting
implemented aie_arcsegment_count(), fixed comment
brought tests back