Fixed allgather and gather to be able to use non-symmetric memory
updated the test for nonsymmetric memory, and fixed any bugs too (I hope)