Easy optimization

direct element insertion is much faster since no function has to be called.