Compact reactor