replace usage of push and pop by addFirst and removeFirst to make it
work on Android API Level 8
version 0.2.1