Copy sequential version for HW2 Q5.
Working parallel version, but 3x slower...