faster getColumn implementation