added inline triple product for numba