Multi-task Offloading and Computational Resources Management in a Mobile Edge Computing Environment