Convert problem21 to cmake