Thank you .. i let arr to arr[20] so that it contains more than enough pointers in case the user wanted to extend the Matrix.. now it is working without errors.. :) :)
for now this is the only way i know for this class.. in the future when i learn vectors , i think i will discover simpler...