Fixing syntax errors for combining method

Added a semi-colon to line 24 after "c<length", changed from "for(c=0; c<length c++)" to "for(c=0; c<length; c++)"