Big waste of memory allocation issue solved caused by variable PosArrlong, which is no longer used.