Added math/factors.py
Added factors function to math/factors.py
Added tests for math/factors.py
Added tests for factors function in math/factors.py