Add pseudocode in Readme