Algorithm for positioning the GUI elements in the User Interface (draft, in progress - 23 Oct 2013)