Added a filter function for vectors and changed to vectors in squareWithLeastUnknowns

Oskar. 30 minutes