Merge pull request #69 from alexander-zimmermann/next

Generic stack implemenation