can you please help me with a code for the fastest algorithm? My array size is [640][480]