Function for drawing arrows

Porting the [PR 2970](https://github.com/Itseez/opencv/pull/2970) To the new InputOutputArray type
Merge pull request #2979 from PhilLab:patch-2