Fixed up parallel. Added example code for serial to compare. Definitely faster to parallelize.