Design of crossbar architecture for vector processing