Integrability of pentagram maps in higher dimensions