adding almost complete bruteforce algorithm. In the middle of debugging. and sample test data from spec.