Used split() to define the input nodes

I simplified the gradInput obtaining, by using split() on the innode.
If the graph has multiple inputs, the innode is split.
Each input will then read just the matching output of the innode.