Mapping algorithms for fault tolerance in nano-scale crossbars architectures