Code now does the calculation parallel and serially, and compares the amount of time it takes for each.