My implementation of an stack in Swift lang