Quantumsim: A Memory Efficient Simulator For Quantum Computing