fix compile error in ubuntu 14.04 LTS; add the lines for debugging the incorrect right breakpoint predicted by right E-clip.
the SW algorithm has been adjusted to make a reliable call.