Added custom SerialBest function

This change prevents segfaults as the champion vector is only as big as
the number of generations run in order to find a solution.