A genetic approach to bus encoding