Initial Commit of core.R

Function shell with comments from course site.
Read files, check threshold and Compute

Correlation summary is slightly off from expected. Needs more work.