Fixed problem18 to use dynamic memory management instead of alloca
Basis for problem 23
Added executable definition for problem 23