Extended input sequences length to 5000 for TCS method