Debugging longest_sub