Code deisgn for SISO and MIMO block-fading channels