Feature/hll optimization

Optimize the HLL code