stop search when too many vertices were visited

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>
add a buffered reader for loading sequences

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>
replace buggy implementation of buffered reader

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>