Cooperative Relaying in a Three User Downlink NOMA System Using Dynamic Power Allocation