Implementation of tiling algorithm in neural networks.