Made some edit in the program, and we have optimized the program, so it should be faster