Handle 2dm files which do not have consecutive element IDs (#65)