havent added timing code
Re-added some timing code (for info).
Most time is taken up finding cross points (unsurprisingly)