Function for drawing arrows

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