update algorithm for cpuinfo parsing