Bulk-Switching Memristor-based Compute-In-Memory Module for Deep Neural Network Training