The answer is Imhotep. It was him who have started the idea of stacking mastabas together to form a pyramid, decreasing the size of each step. Before the creation of the pyramid, burial tombs of many Egyptian royals looked like a flat-roofed, regular tombed.