Converted problem13 to cmake; optimized problem13