Memory Accesses management during High Level Synthesis