latest version with working list and mergesort stub