The S-matrix bootstrap II: two dimensional amplitudes