minor edits to median asymptotic code