Fix unboundlocalerror in inorder_walker use in SophisticatedMedianFinder#get_median.
Switch to using generators for the inorder traversal.