Work on serial.c

Parsing of the file, some error handling and allocation of the counters
array.
Merge branch 'master' into serial
More work on serial.c
Merge branch 'master' into serial
Implement serial diameter algorithm.
Complete serial algorithm for diameter estimation