> The median is not found by (H-L)/2+L. Read that Wikipedia entry again.
I really did read it, but I managed to take it to mean the midpoint of the range, all evidence to the contrary. It seems I tripped on the words "middle value", which is ambiguous.