Fixed heap sort, added counting and bucket sort.