Fixed a possible error in receive_side function by reversing array in place. NEED TO TEST IN LINUX AND HOME PC