Add two pointer way which is better than original one.