Added input util

No more <iostream> in main!
Fixed size_t type usage

For some reason, size_t just now realized that it is not being declared
through std::.
No idea why...