Optimized reachability.

Select a reference position and calculate reachability of all positions
to that reference.
Only check if all valid positions are reachable from that reference.
Ported reachability over to new solution file.