compat with numpy 1.5.1

Replacing np.pad with np.hstack