modified kriging to accept pre-allocated arrays