16 to 4 encoder