Add some new tensorflow ops

Thanks, yeah I also remember te.scan only supports scanning along the first axis. I think te.extern is good as a first step.