New edition of oppg1.c

cleaned up oppg1.c so that the vector is created for each Sn. I think this will
make it easier to compare problems of different sizes.

I also implemented two different ways of summing the vector, one numerically
bad and one numerically optimal. The difference was very small.