Algebraic combinatorics of hyperplane arrangements