Simulating Large Scale Memristor Based Crossbar For Neuromorphic Applications