updated to handle nexus files with variable number of sequences