Text this: Design of Energy-Efficient Protocol Stack for Nanocommunication Using Greedy Algorithms