Merge change I4758f121 into eclair-mr2

* changes:
  Added the Protractor algorithm for calculating the minimum cosine distance between gestures