private boolean isInBetween(double x, double a, double b){
		
		double product = (x - a) * (x - b);
		if(product <= 0) return true;
		else if(Math.abs(x - a) < 1 || Math.abs(x - b) < 1) return true;
		else return false;
	}