1. An integrated circuit comprising: a search unit configured to access an input vector including a plurality of bits, and to find a first and a second instance of a predetermined bit value; wherein the search unit is further configured to: generate a first output vector that indicates a bit position of the first instance of the predetermined bit value within the input vector, wherein the bit position in the first output vector that corresponds to the first instance of the predetermined bit value is set to one logic value, and all other bit positions of the first output vector are set to a different logic value; and generate a second output vector that indicates a bit position of the second instance of the predetermined bit value within the input vector, wherein the bit position in the second output vector that corresponds to the second instance of the predetermined bit value is set to the one logic value, and all other bit positions of the second output vector are set to the different logic value.