changed name of naive implementation to let it be more understandable