1. A method for processing a first dataset comprising a second dataset and a third dataset in order to locate the third dataset, the second dataset having a variable data length and terminating with an ending marker and the third dataset starting after the ending marker, wherein the method comprises: preprocessing a memory element by storing a plurality of locater markers; storing the first dataset in the memory element thereby overwriting a portion of the plurality of locater markers; locating which of the plurality of locater markers is closest to the end of the first dataset and is not overwritten; and locating the third dataset by searching for the ending marker of the second dataset based on a position of the closest locater marker.