Pinch gesture detection for leap motion frames API