change "char pch[200000]" to "new char[200000]"

Change the big size local var  "char pch[200000]" to "new char[200000]" to avoid the possibly stack overflow.