Adaptive rate-maximizing channel-shortening for ISI channels