finished linked stack implementation