Implemented brute force solution

* Completed brute force solution
* Added numeric-tower dependency