tested shift buffer
moved testing code to separate header
+ new cmd arguments
reading file in portions depending on the patternsearch