Algorithm implementation and design of reconfigurable mixed systolic arrays