remove unused SizedStack and tidy up unused imports