BFFs solutions

BFFs was solved using MATLAB by 4 contestants. Solution sizes: average 2630 bytes (shortest: 1796; longest: 3141).