qSort mostly done but getting segfaults replace parameters with int startposition, and int length; operate on dictionary and myCount