Code for Kaggle accelerometer competition