RAPIDNN: In-Memory Deep Neural Network Acceleration Framework