By using lye (sodium or, i.c., potassium hydroxide), you can put your bodies (make sure they're dead) through a process called alkaline hydrolysis (just look at that link, *wink* *wink*).
The process takes only 4-6 hours (if heated to a temperature of around 160 °C (320 °F)).
From the Wikipedia article (slightly abridged):
The result is a quantity of green-brown tinted liquid [..], and soft, porous white bone remains [..] easily crushed in the hand [..] to form a white-colored dust.
The "ash" can then be returned to the next of kin of the deceased [or used as fertilizer]. The liquid [can be] [..] use[d] in a garden or green space.
Reading on, we can see it is actually an energy-efficient and relatively low-pollutive way of dealing with your dead.
You do need access to the outside world as you require a lot of trees and rainwater.
The trees don't need to be alive, though (which is good news if your civilization decided to take root underground because the surface of the earth has been turned into a barren wasteland), as you will only require their ashes to produce lye.

source