Updated map accumulation;
Added median filter for curve creation;