Text this: Optimal resource allocation for NOMA wireless networks