stabilized ffi mul
fixed off-by-one bug
added lua tpsa