Market cycles and bubbles