kth smallest number using median of median

and longest common substring and iterative post order traversal