EPA: fix a nasty bug in writing output files. Total value was unnecessarily calculated in each iteration, leading to quadratic overhead.
Because of this, time needed to write down the output exploded in case of big reference trees and/or large number of query sequences.