Similar Items: Convolutional Neural Network-Based Workload and Resource-Aware Task Management in Fog Networks