Optimize input

This should speed up the input parsing. I reached a factor 7 of speed improvement on input fastas of size up to 100MB. One step of the optimisation was to do the filtering on length as early as possible, this happened to fix #104.