Implemented sum for dimensions