Object localization using Input/Output Recursive Neural Networks