added source file and sample. added makefile.
code edited in accordance with Google C++ Style Guide
Additional style changes
Additional style changes #2
Merge pull request #55 from gdmit/lab3

Lab3 by Dmitriy Gorokhov