Removed Memory Allocation bug in BackPropagation