finished cleaning up chi_CPU function, changed lens_SOA structure, implemented new sorting function
Former-commit-id: 15fae33691a45f175084138385146228401eb5c6