added SortAlgs c and h files