Coding strategies for relay based networks