Added chart.R from the fancy-analysis template.

For instructions on how to get the fancy-analysis template, take a look at
video lecture 5.9.
Able to reproduce the charts shown in the assignment description.

I have no idea how R works and the code is a mess.
Add a couple of source-code bindings.