Added .gitignore
Removed several checks to speed things up.

By not doing range checking in the overlap function, a typical test when
from 735 seconds to 656 seconds.
A few more speed tweaks.