added some cout's for testing (ellipsoid diameter etc.)
changed max memory usage to 10GB