added support for pages of different sizes (still a bit flaky)...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>