Converted ExternDefinitions to use sparseArray instead of std::vector
to cut down on required amount of memory when using large sequences