Added functions to detect intervals and simple perms.
In-progress class for AvoidenceGrids and testing for simple extensions
Added AvioidenceGrid to __init__