Added some pseudocode in description.

See also links in facebook.