Java program to extract sample features from Accelerometer data