add binary version of pso and type1 pso