Fixes #1

Also added clear() methods to queue and list.