Linear data structures solution added.