Update brute.c

Prefix_size is corrected to 0-based indexing.