create Node from file or vector.

Added algorithm 22 & 26 pseudo code.