long int => size_t in timing
Added max_part + tests