Calculate the homologies of links of hyperplane arrangements