Add template class for interval manager so we can reuse it.
Modified makefile.