Added three sum algorithm