As blockchain transactions became more complicated and difficult to process, sidechains were developed to deal with the problem. Here's how they work.