Completed 2.c

Now, the hard part: implementing BLSR (w/ 5 days to go till deadline
:/).