Added benchmark brute force optimization.