Update poisson.py

* Added option for 1D
* Repeating patterns are visualized with a single repetition in every direction
* Fixed bug with many iterations (minimizing instead of maximizing)
* A bit of renaming to fit more 1,2,3D