Add SubRange class to test out of bound variables

Add EXIT_FAILURE macro