Removed diagonal bug from LRR code