added numpy for pairwise array addition