fixed null pointer bug finished with mpiqsort