find longest hailstone sequence recursively