     throw new Error "Impossible to rotate vector (#{dx},#{dy}) to the positive direction"
 
 
-  analyze: (pattern, rule, max_iters = 2048, stop_on_border_hit=true) ->
+  
+
+  analyze1: (pattern, rule, max_iters = 2048, stop_on_border_hit=true) ->
     throw new Error ("Pattern undefined")  unless pattern
     throw new Error ("Rule undefined")  unless rule
     #sort cells by Y, then by X

      @normalize lst1
    else
      lst1

  #Normalize list: sort cells and offset them to the origin    
  normalize: (lst1) -> @sortXY @normalizeXY lst1
  

  extent: (lst) ->
    [_,_,x1, y1] = @bounds lst
    [x1, y1]

  #Find index of the first cell with given coordinates    
  find: (lst, [x,y]) ->
    for [xi, yi], i in lst
