Add optimisation method in computing kernel api
Modify unit tests