new class and changed a container

Created a new singleton base class and redesigned Kmap to be faster and
more efficient in lookups. Also finalized header data class and removed
using namespace std from all header files