Accelerometer based Gesture Recognition Engine