In main.c remove limitation from calculate baseline to stop if end is reached. We now loop until size i.e. the total size of the array if possible