Data Structure and Algorithms Implementation in Swift and Java