fix: Set indecies in memory loops to size_t

Signed-off-by: Sebastian Niemann <niemann@sra.uni-hannover.de>