Hearts responded from their Scottish Cup exit at arch-rivals Hibernian with a deserved 2-0 victory over Aberdeen at Tynecastle.