added full inference algorithm to readme.md