Amount of repeats is passed through stdin

main.cpp is modified to read repetition amount from stdin before tests are induced.