Added get_longest_span. Added candidate[] list.