Topic cuda modules

Added cuda support to nn.Mean and nn.Sum