Added more implementation to backtesting.py