Added getValue(int,int,int) implementation