Max sum library for mobile sensors