Added the code from the backup in cds.py. Changes the issue of 'a' being hardocded. In the recursive call 'a' doesnt always pass as -1 therefore when we naively put a every where instead of '-1' code used to break. Now a temporary variable captures that value.