Create encoder.cpp

creates the part of the program that does the encoding (encoder and decoder used to be 2 separate programs so i'm going to try take some functions and consolidate them)