Create parsePartitions.c

Old version of the code.