MSF: An Efficient Mobile Phone Sensing Framework