Advanced data structures solution added.