Possibly using the [stdlib](https://un5gcfx9p35ju.julianrbryant.com/) library for optimizing the code.