Trying to find the abs value in accelerometer data