Find the top N salaries in each department, where N is provided as a parameter.