Test weighted_sum on single inputs
Refactor weighted_sum.v and weighted_sum_tb.v