Added weighted DTW distance function

- Weighted DTW distance function that penalizes DTW matched points based on their phase differences. 
- Used the faster android.util.FloatMath class for the exponentiation function.