Add torch.view and torch.viewAs

These functions allow to create a resized view of a tensor without
copying its storage.