According to a new study, Americans in Massachusetts need the highest annual incomes to be considered middle class.