Added algorithm of Peterson.

 - Added spin.h in std
 - Added the algorithm of Peterson in spin.h
 - Added testing program peterson.cpp