added 3 sum algorithm