10 to 4 line encoder