Accelerating Deep Learning with Memcomputing