Added subroutine plot_ranges() to numerics

* Added subroutine plot_ranges() to numerics:
  * determine plot ranges from given x and y arrays, and desired margins