first part working! 30 points granted...= =
logic makes sense to me, but segmentation fault on creating array. cannot fix it
finding boundary part already gives segmentation fault = =
combined