Initial commit
added reading file and samples
main algorithm code