NullHop: A Flexible Convolutional Neural Network Accelerator Based on Sparse Representations of Feature Maps