Function for drawing arrows

Porting the [PR 2970](https://github.com/Itseez/opencv/pull/2970) To the new InputOutputArray type