UFP continues cost cutting, posts profit