Memoryless Approach to the LQ and LQG Problems with Variable Input Delay