Updated some Algorithms and split some .cs files