A method to remove deadlocks in Networks-on-Chips with Wormhole flow control