http://www.google.lv/url?sa=t&source=web&cd=19&ved=0CGYQFjAIOAo&url=http://www.cis.udel.edu/~chandra/849/Spring00/Lectures/Lecture9/Lecture9.pdf&ei=0lixTbzkI4-MswbV0_H9Cw&usg=AFQjCNHN5AgqKP7EOa0-YNoyrlu9qWLw-g