Generic fixed capacity stack - naive version