Task 3: Switching from pointwise to pairwise

As per last minute TAs comment at
https://piazza.com/class#spring2013/cs276/645