implement fixed capacity stack