Changed -O3 to -O4 (maximum clang optimizations)
Reduced repetitive calculations
Stream API fourth draft