code to align bit delays on random data