Started creating TemplateDetection, and util stuff

Created a class that is supposed to detect edges using the template
algorithm using cardinal directions (north, south, etc.). Created
utility files and moved stuff from filereader to them, and created some
new as well.