Update Program.cs

Almost got variable lengths working. Just need to convert some things to long. Even the next length up of 5 is too big for int.