8 to 3 priority encoder