Deleted something that was causing compilation errors
Moved file manipulation functions from pattern class to static helper class.

I also got rid of the input pattern size and output pattern size
variables.
Cleaned up the csv file.
I wasn't initializing error and value. I corrected that.