add two pointer programs