fixed shape inference for reduce
simple reduce tests pass
added llvm prims
splitting up library functions