Implementation of popular algorithms and data structures using Swift