Box particle filter via Bernouli filter algorithm to filter the particles in a constrained box