IMEC: A Memory-Efficient Convolution Algorithm For Quantised Neural Network Accelerators