leftPad function for future me\ninitialization of empty array of frequences