added merged code files for both algorithms
small change to file