removed the struct and added the overview of the algorithm at the top of the file, I didn' think that using struct is a good idea.