OfficeMax profit tops estimates