Algorithm for low power combinational circuit testing