D2D mode selection and resource allocation with flexible UL/DL TDD for 5G deployments | IEEE Conference Publication | IEEE Xplore