changes to take inputs in multiple formats
Removing debug lines
Condensed GPU memory + accept either file or cin