random alg seems to work, array generator not implemented yet
merged with Albert, now have input parsing and random alg complete