Move int stack class into separate source files.