Optimizing the Performance of a WMN using Network Coding