Metasurfaces as Building-blocks for Next-generation Optical Elements