Added calc.py to outsource calculations for numba