code: public Element<T> getElement( int index , boolean fromFront ) {
  		if( index > size || index < 0 ) {
  			throw new IllegalArgumentException("index is out of bounds");
  		}
  		if( fromFront ) {
  			Element<T> e = first;
  			for( int i = 0; i < index; i++ ) {
  				e = e.next;
  			}
  			return e;
  		} else {
  			Element<T> e = last;
  			for( int i = 0; i < index; i++ ) {
  				e = e.previous;
  			}
  			return e;
  		}
  	}
docs: Returns the N'th element when counting from the from or from the back
  
  @param index Number of elements away from the first or last element. Must be positive.
  @return if true then the number of elements will be from first otherwise last