Why did you create this member function? It is called in a tight loop, and it is instantiating an array each time it is called. Why do you feel this function is needed?